package com.okyai.kt.mapper;

import java.util.List;
import com.okyai.kt.domain.RecordDetail;

/**
 * 档案明细Mapper接口
 * 
 * @author okyai
 * @date 2021-03-21
 */
public interface RecordDetailMapper 
{
    /**
     * 查询档案明细
     * 
     * @param detailId 档案明细ID
     * @return 档案明细
     */
    public RecordDetail selectRecordDetailById(Long detailId);

    /**
     * 查询档案明细列表
     * 
     * @param recordDetail 档案明细
     * @return 档案明细集合
     */
    public List<RecordDetail> selectRecordDetailList(RecordDetail recordDetail);

    /**
     * 新增档案明细
     * 
     * @param recordDetail 档案明细
     * @return 结果
     */
    public int insertRecordDetail(RecordDetail recordDetail);

    /**
     * 修改档案明细
     * 
     * @param recordDetail 档案明细
     * @return 结果
     */
    public int updateRecordDetail(RecordDetail recordDetail);

    /**
     * 删除档案明细
     * 
     * @param detailId 档案明细ID
     * @return 结果
     */
    public int deleteRecordDetailById(Long detailId);

    /**
     * 批量删除档案明细
     * 
     * @param detailIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteRecordDetailByIds(String[] detailIds);
    
    /**
     * 批量新增档案明细
     * 
     * @param recordDetailList 档案明细列表
     * @return 结果
     */
    public int batchRecordDetail(List<RecordDetail> recordDetailList);
    
}